home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / computerjanitor / plugins / kdelibs4to5_plugin.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.3 KB  |  28 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import computerjanitor
  5. _ = computerjanitor.setup_gettext()
  6.  
  7. class Kdelibs4devToKdelibs5devPlugin(computerjanitor.Plugin):
  8.     '''Plugin to install kdelibs5-dev if kdelibs4-dev is installed.
  9.     
  10.     See also LP: #279621.
  11.     
  12.     '''
  13.     
  14.     def __init__(self):
  15.         self.condition = [
  16.             'from_hardyPostDistUpgradeCache']
  17.  
  18.     
  19.     def get_cruft(self):
  20.         fromp = 'kdelibs4-dev'
  21.         top = 'kdelibs5-dev'
  22.         cache = self.app.apt_cache
  23.         if fromp in cache and cache[fromp].isInstalled and top in cache and not (cache[top].isInstalled):
  24.             yield computerjanitor.MissingPackageCruft(cache[top], _('When upgrading, if kdelibs4-dev is installed, kdelibs5-dev needs to be installed. See bugs.launchpad.net, bug ##279621 for details.'))
  25.         
  26.  
  27.  
  28.